package com.etl.dataflow.executor.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author dx
 * @since 2022/4/21
 */
@Component
public class SchedulerInfoUtil {
    @Value("${scheduler.host}")
    private String schedulerHost;

    @Value("${scheduler.port}")
    private String schedulerPort;

    public String getSchedulerHost() {
        return this.schedulerHost;
    }

    public String getSchedulerPort() {
        return this.schedulerPort;
    }

    public String getSchedulerUrl() {
        return this.schedulerHost + ":" + this.schedulerPort;
    }
}
